﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PracticeWPF
{
    /// <summary>
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {

            InitializeComponent();
            this.MouseLeftButtonDown += (o, e) => { DragMove(); };  //#region 无边框窗体拖动
            this.txtLoginld.Focus();
        }

        public object Grid { get; private set; }



        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {

        }

        private void btnExit_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
            //  this.DialogResult = false;
        }

        private void btnLogin_Click(object sender, RoutedEventArgs e)
        {
            //调用登录逻辑.......

            //保存登录对象



           // App.currentAdmin = new Models.Admin();


            this.DialogResult = true;
        }
    }
}

